package com.guodi.model.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guodi.model.entity.ApiMdlModelDir;
import com.guodi.model.entity.MdlModelDir;
import com.guodi.model.mapper.MdlModelDirMapper;
import com.guodi.model.service.IMdlModelDirService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @描述：模型目录表 服务类
 * @作者: 代鹏刚
 * @日期: 2020-06-17
 */
@Service
public class MdlModelDirServiceImpl extends ServiceImpl<MdlModelDirMapper, MdlModelDir> implements IMdlModelDirService {

    @Resource
    private MdlModelDirMapper mdlModelDirMapper;

    @Override
    public void deleteByIds(String[] ids) {
        mdlModelDirMapper.deleteByIds(ids);
    }

    @Override
    public List<MdlModelDir> listDirTreeByEntity(String parentId, Integer dirType) {
        return mdlModelDirMapper.listDirTreeByEntity(parentId, dirType);
    }

    @Override
    public List<ApiMdlModelDir> listTreeByEntity(String parentId, Integer dirType) {
        return mdlModelDirMapper.listTreeByEntity(parentId, dirType);
    }
}